package net.muchine.core.service.user;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import net.muchine.core.dao.user.GroupUserDao;
import net.muchine.core.domain.user.Group;
import net.muchine.core.domain.user.GroupUser;
import net.muchine.core.domain.user.User;
import net.muchine.core.service.GenericServiceImpl;

@Component
public class GroupUserServiceImpl extends
		GenericServiceImpl<GroupUser, GroupUser> implements GroupUserService {

	@Autowired GroupUserDao dao;

	@Override
	public void setGenericDao() {
		super.setDao(dao);
	}
	
	public List<User> selectUsers(Long groupSeq) {
		return dao.selectUsers(groupSeq);
	}

	public List<Group> selectGroups(Long userSeq) {
		return dao.selectGroups(userSeq);
	}
}
